package mysql

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Account  string `gorm:"type:varchar(20);not null;comment:'账号'"`
	Password string `gorm:"type:char(32);not null;comment:'密码'"`
	Mobile   string `gorm:"type:char(11);not null;comment:'手机号'"`
}

type Position struct {
	gorm.Model
	Name          string  `gorm:"type:varchar(20);not null;comment:'职位名称'"`
	Types         string  `gorm:"type:varchar(20);not null;comment:'职位类别'"`
	Address       string  `gorm:"type:varchar(100);not null;comment:'工作地址'"`
	Price         float64 `gorm:"type:decimal(10,2);not null;comment:'薪资'"`
	Experience    string  `gorm:"type:varchar(20);not null;comment:'经验'"`
	Qualification string  `gorm:"type:varchar(20);not null;comment:'学历'"`
}
